From 3a929ee3ff284d7ddaa8d1774b722daa5e3aa793 Mon Sep 17 00:00:00 2001 From: robertl Date: Fri, 1 Nov 2002 02:52:06 +0000 Subject: [PATCH] Fix bug parsing MDY in magproto. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@143 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/magproto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gpsbabel/magproto.c b/gpsbabel/magproto.c index f486308df..b1d6b1efc 100644 --- a/gpsbabel/magproto.c +++ b/gpsbabel/magproto.c @@ -670,11 +670,11 @@ mag_trkparse(char *trkmsg) hms = hms / 100; tm.tm_hour = hms % 100; - tm.tm_mon = dmy % 100; + tm.tm_year = 100 + dmy % 100; dmy = dmy / 100; - tm.tm_mday = dmy % 100; + tm.tm_mon = dmy % 100 - 1; dmy = dmy / 100; - tm.tm_year = 100 + dmy % 100; + tm.tm_mday = dmy % 100; /* * FIXME: mktime assumes the struct tm is in local time, which -- 2.30.2